package com.realife.mbplustest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Albert
 * @since 2020-05-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbOrder对象", description="")
public class TbOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    @ApiModelProperty(value = "总金额，单位为分")
    private Long totalFee;

    @ApiModelProperty(value = "实付金额。单位:分。如:20007，表示:200元7分")
    private Long actualFee;

    @ApiModelProperty(value = "优惠活动id，多个以，隔开")
    private String promotionIds;

    @ApiModelProperty(value = "支付类型，1、在线支付，2、货到付款")
    private Boolean paymentType;

    @ApiModelProperty(value = "邮费。单位:分。如:20007，表示:200元7分")
    private Long postFee;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "发票类型(0无发票1普通发票，2电子发票，3增值税发票)")
    private Integer invoiceType;

    @ApiModelProperty(value = "订单来源：1:app端，2：pc端，3：微信端")
    private Integer sourceType;

    @ApiModelProperty(value = "订单的状态，1、未付款 2、已付款,未发货 3、已发货,未确认 4、确认收货，交易成功 5、交易取消，订单关闭 6、交易结束，已评价")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "发货时间")
    private Date consignTime;

    @ApiModelProperty(value = "交易完成时间")
    private Date endTime;

    @ApiModelProperty(value = "交易关闭时间")
    private Date closeTime;

    @ApiModelProperty(value = "评价时间")
    private Date commentTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
